home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Visual Basic 5.0 (2nd Edition) / Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso / Source / Sieve / SIEVEATL / SIEVEATL.IDL < prev    next >
Text File  |  1996-10-29  |  1KB  |  48 lines

  1. // SieveATL.Idl : Type library source
  2.  
  3. // This file will be processed by the MIDL tool to produce
  4. // the type library (ShortCutSvr.tlb) and marshaling code.
  5.  
  6. [   uuid(18315EE2-B8D4-11CF-AEC1-444553540000),
  7.     object,    dual, hidden,
  8.     helpstring("ICSieveATL Interface"),
  9.     pointer_default(unique)
  10. ]
  11. interface ICSieveATL : IDispatch {
  12.     import "oaidl.idl";
  13. // Properties
  14.     [propget, helpstring("The next prime number")]
  15.     HRESULT NextPrime([out, retval] short * pi);
  16.  
  17.     [propget,
  18.     helpstring("The maximum prime number to evaluate")]
  19.     HRESULT MaxPrime([out, retval] short * pi);
  20.     [propput]
  21.     HRESULT MaxPrime([in] short i);
  22.  
  23.     [propget,
  24.     helpstring("Count of calculated prime numbers")]
  25.     HRESULT Primes([out, retval] short * pi);
  26.  
  27.     // Methods
  28.     [helpstring("Reinitialize the prime number counter")]
  29.     HRESULT ReInitialize(void);
  30.  
  31.     [helpstring("Get all primes in a given array")]
  32.     HRESULT AllPrimes([in, out] SAFEARRAY(short) * ai);
  33. };
  34.  
  35. [   uuid(18315EE3-B8D4-11CF-AEC1-444553540000),
  36.     version(1.0),
  37.     helpstring("Sieve of Eratosthenes As C++ ATL DLL"),
  38. ]
  39. library SIEVEATLLib {
  40.     importlib("stdole32.tlb");
  41.     [   uuid(18315EE7-B8D4-11CF-AEC1-444553540000),
  42.         helpstring("CSieveATL Class")
  43.     ]
  44.     coclass CSieveATL {
  45.         [default] interface ICSieveATL;
  46.     };
  47. };
  48.